<form action="/admin/ads" method="post" enctype="multipart/form-data" name="adminads" id="adminads" style="margin:0; padding:0">
    <br>
	<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td class="bgtitle"><table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
                    <tr>
                        <td width="20"><img src="/templates/images/mui_ten.gif" /></td>
                        <td valign="bottom" class="title">Quảng cáo</td>
                        <td width="10" valign="bottom">&nbsp;</td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td valign="top" >&nbsp;</td>
        </tr>

    </table>
    <table width='98%' align='center' border='1' cellpadding='2' cellspacing='0' bordercolor='#CCCCCC' style='border-collapse:collapse'>
		<tr>
			<td style="width: 150px;" height='30' class='bgmenupro border3' bgcolor='#DDDDDD'>
				<div align="center">
					<strong>
						Vị trí
					</strong>
				</div>
			</td>
			<td style="width: 220px;" class='bgmenupro border3' bgcolor='#DDDDDD'>
				<div align="center">
					<strong>
						Tên
					</strong>
				</div>
			</td>
			<td class='bgmenupro border3' bgcolor='#DDDDDD'>
				<div align="center">
					<strong>
						Link
					</strong>
				</div>
			</td>
			<td class='bgmenupro border3' bgcolor='#DDDDDD'>
				<div align="center">
					<strong>
						Upload file
					</strong>
				</div>
			</td>
		</tr>
		{foreach from=$ads item=ads_item}
			<tr>
				{if $ads_item@index == 0}
					<td rowspan="5">Quảng cáo slidegallery:</td>
				{/if}
			<input type="hidden" id="slidegallery_id[{$ads_item@index}]" name="slidegallery_id[{$ads_item@index}]" value="{$ads_item.idads}">
			<td>
				<div align="center">
					<input type="text" id="slidegallery_name[{$ads_item@index}]" name="slidegallery_name[{$ads_item@index}]" style="width: 200px" value="{$ads_item.name}">
				</div>
			</td>
			<td>
				<div align="center">
					<input type="text" id="slidegallery_link[{$ads_item@index}]" name="slidegallery_link[{$ads_item@index}]" style="width: 200px" value="{$ads_item.link}">
				</div>
			</td>
			<td>
				<input type="file" style="width: 220px;" id="slidegallery_file[{$ads_item@index}]" name="slidegallery_file[{$ads_item@index}]">
			</td>
			</tr>
		{/foreach}
		<tr>
			<td colspan="7">
				<br>
				<div align='center'>
					<input type="submit" id="save_ads" name="save_ads" value="Lưu CSDL">
					<input type="submit" id="reset_ads" name="reset_ads" value="Hoàn tác">
				</div>
				<br>
			</td>
		</tr>
	</table>
</form>
<br />
